$(function(){
    $('.nav-none').hide();
    $('.but').click(function () {
        $('.nav1-div').hide();
        $('.nav-none').show();
    })
    $('.none-but1').click(function(){
        $('.nav-none').hide();
        $('.nav1-div').show();
    })
    $('.but2').click(function(){
            var info = {
                    phone:$('.phone').val(),
                    code:$('.code').val(),
                    username:$('.username').val(),
                    password:$('.password').val(),
                    password1:$('.passsword1').val(),
            };
            $.ajax({
                    url:'http://localhost:3000/users/register',
                    type: 'post',
                    data:info,
            })
    })
})
